package com.baizhi.cmfzdemo.entity;

import java.util.Date;

/**
 * `user_id` int(100) NOT NULL AUTO_INCREMENT,
 `user_telphone` varchar(50) DEFAULT NULL,
 `user_password` varchar(50) DEFAULT NULL,
 `user_image` varchar(200) DEFAULT NULL,
 `user_nickname` varchar(200) DEFAULT NULL,
 `user_name` varchar(20) DEFAULT NULL,
 `user_sex` varchar(20) DEFAULT NULL,
 `user_autograph` varchar(200) DEFAULT NULL COMMENT '个性签名',
 `user_province` varchar(200) DEFAULT NULL,
 `user_city` varchar(200) DEFAULT NULL,
 `guru_id` int(100) DEFAULT NULL,
 `user_status` int(11) DEFAULT NULL,
 `user_create_date` datetime DEFAULT NULL,
 PRIMARY KEY (`user_id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1304 DEFAULT CHARSET=utf8;
 */
public class CmfzUser {
    private int userId;//用户id
    private String userTelphone;//用户电话
    private String userPassword;//用户密码
    private String userImage;//用户头像
    private String userNickname;//用户昵称
    private String userName;//用户名
    private String userSex;//用户性别
    private String userAutograph;//个性签名
    private String userProvince;
    private String userCity;//地址
    private int guruId;//上师id
    private int userStatus;//用户状态
    private Date userCreateDate;//创建时间

//    public static void main(String[] args){
//            int[] arr = {6,3,8,2,9,1};
//            //排序后
//            for(int i = 0;i<arr.length-1;i++){//外层循环控制排序次数
//                for(int j = 0;j<arr.length-1-i;j++){
//                    if(arr[j]>arr[j+1]){
//                        int temp = arr[j];
//                        arr[j]=arr[j+1];
//                        arr[j+1]=temp;
//                    }
//                }
//            }
//            for(int num2:arr){
//                System.out.println(num2+" ");
//            }
//    }

    public CmfzUser() {
    }

    public CmfzUser(int userId, String userTelphone, String userPassword, String userImage, String userNickname, String userName, String userSex, String userAutograph, String userProvince, String userCity, int guruId, int userStatus, Date userCreateDate) {

        this.userId = userId;
        this.userTelphone = userTelphone;
        this.userPassword = userPassword;
        this.userImage = userImage;
        this.userNickname = userNickname;
        this.userName = userName;
        this.userSex = userSex;
        this.userAutograph = userAutograph;
        this.userProvince = userProvince;
        this.userCity = userCity;
        this.guruId = guruId;
        this.userStatus = userStatus;
        this.userCreateDate = userCreateDate;
    }

    @Override
    public String toString() {
        return "CmfzUser{" +
                "userId=" + userId +
                ", userTelphone='" + userTelphone + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userImage='" + userImage + '\'' +
                ", userNickname='" + userNickname + '\'' +
                ", userName='" + userName + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userAutograph='" + userAutograph + '\'' +
                ", userProvince='" + userProvince + '\'' +
                ", userCity='" + userCity + '\'' +
                ", guruId=" + guruId +
                ", userStatus=" + userStatus +
                ", userCreateDate=" + userCreateDate +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserTelphone() {
        return userTelphone;
    }

    public void setUserTelphone(String userTelphone) {
        this.userTelphone = userTelphone;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserAutograph() {
        return userAutograph;
    }

    public void setUserAutograph(String userAutograph) {
        this.userAutograph = userAutograph;
    }

    public String getUserProvince() {
        return userProvince;
    }

    public void setUserProvince(String userProvince) {
        this.userProvince = userProvince;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public int getGuruId() {
        return guruId;
    }

    public void setGuruId(int guruId) {
        this.guruId = guruId;
    }

    public int getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(int userStatus) {
        this.userStatus = userStatus;
    }

    public Date getUserCreateDate() {
        return userCreateDate;
    }

    public void setUserCreateDate(Date userCreateDate) {
        this.userCreateDate = userCreateDate;
    }
}
